﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heavy_Metals
{
    public partial class XSLSMX_LSYJYC : Form
    {
        public XSLSMX_LSYJYC()
        {
            InitializeComponent();
        }
        public DrawCurves dc = new DrawCurves();



        private void button1_Click(object sender, EventArgs e)
        {
            Graphics g = this.CreateGraphics();
            Pen p = new Pen(Color.Blue, 2);
            MessageBox.Show("预测成功", "操作提示");
            double perPicelY = 5.0 / 20;
            double[] data = { 10, 4, 6, 23, 3, 14, 4, 6 };
            dc.DrawCurve(g, p, "曲线1", new Point(10, 10), 100, 200, perPicelY, 20, data);
            double[] data1 = { 23, 45, 6, 7, 33, 6, 27, 2, 15, 23, 4, 6, 24 };
            Pen p1 = new Pen(Color.Black, 2);
            dc.DrawCurve(g, p1, "曲线2", new Point(10, 50), 100, 200, perPicelY, 20, data1);
        }

        private void XSLSMX_LSYJYC_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;
            Pen p = new Pen(Color.Blue, 2);
            dc.DrawCoordinate(g, p, 100, 200, 400, 200, 20, 20, 2.5, 5.0);
        }
    }
}
